FROM openjdk:8-jdk-oraclelinux8
LABEL maintainer=hothotsavage

#修改时区
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

#docker run -e PARAMS="--server.port 9090"
ENV PARAMS="--server.port=8080 --spring.profiles.active=prod --spring.cloud.nacos.discovery.server-addr=nacos-cluster.ruoyi:8848 --spring.cloud.nacos.config.server-addr=nacos-cluster.ruoyi:8848 --spring.cloud.nacos.config.namespace=prod --spring.cloud.nacos.config.file-extension=yml"

EXPOSE 8888

COPY target/*.jar /app.jar
COPY startup.sh /startup.sh

CMD ["/bin/bash","/startup.sh"]